package com.lagou.module2.task2;

public class DataPlan implements DataService{
    //构造方法
    public DataPlan(int data, double data_fee) {
        setData(data);
        setData_fee(data_fee);
    }
    public DataPlan(){}

    //成员变量
    public static int data;
    public static double data_fee;

    //成员方法
    public void showData(){
        System.out.println("每月可用流量: "+data+"/n当前套餐月费: "+data_fee);
    }

    //get，set方法
    public static int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public static double getData_fee() {
        return data_fee;
    }

    public void setData_fee(double data_fee) {
        this.data_fee = data_fee;
    }
    //重写
    @Override
    public void dataService(int data, PhoneCard pc) {
        System.out.println("");
    }
}
